BinaryStream.Read Method

Reads Count characters from the stream starting at the Position property and returns them as a String. The optional parameter Encoding enables you to specify the text encoding to be defined on the returned string.

Syntax

BinaryStream.Read Count, [Encoding]


Parameters

Count

Integer {link(TextEncoding):

Encoding (Optional)

TextEncoding}


Use the Encodings object to specify the text encoding. If you omit this parameter (or pass Nil), then the encoding of the returned string will be Nil.